﻿var path1 = args[0];
var path2 = args[1];

Console.WriteLine($"输入目录1: {path1}");
Console.WriteLine($"输入目录2: {path2}");
var files1 = Directory.GetFiles(path1).OrderBy(x => x).ToArray();
for (int i = 0; i < files1.Length; i++)
{
    var file = files1[i];
    File.Move(file, Path.Combine(path2, (i + 1).ToString() + Path.GetExtension(file)));
}